package day06;

public class MethodDemo {
    public static void main(String[] args) {
        aMethod();
        System.out.println(444);
        int[] d = testArray(5, 100);
        System.out.println(d.length);

        System.out.println(d[0]);

        for (int i = 0; i < d.length; i++) {
            System.out.println(d[i]);
        }
    }

    public static int[] testArray(int len, int max) {
        int[] arr = new int[len];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int) (Math.random() * (max + 1));
        }
        return arr;
    }

    public static void aMethod() {
        System.out.println(111);
        bMethod();
        System.out.println(222);
    }

    public static void bMethod() {
        System.out.println(333);
    }


//        say("迟佳祺");
//        say("竖行");
//        saysb("韩清",29);
//        double a=getNum();
//        System.out.println(a);
//        int num=plus(5,10);
//        System.out.println(num);
//
//        int m=30,n=55;
//        int c=plus(m,n);
//        System.out.println(c);
//
//        System.out.println("继续执行...");
//    }
//    public static void  saysb(String name,int age){
//        System.out.println("我叫"+name+",今年"+age);
//    }
//    public static void say(String name){
//        System.out.println("大家好我叫"+name);
//    }
//    public static double getNum(){
//        return 8.88;
//    }
//    public static int plus(int num1,int num2){
//        int num=num1+num2;
//        return num  ;

}

